package com.yulp.springboot2task.service;

/*import com.yulp.springboot2task.constant.RetryMessageConstant;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class GrfApply2CnMessageSender extends RetryMessageSender {
    private Logger logger = LoggerFactory.getLogger(this.getClass());
    @Autowired
    private FaildExceptionLogService faildExceptionLogService;

    public void sendGrfApply2CnDelayedEnqueue(String topic, String message, int retries) {
        this.setQueueName(RetryMessageConstant.RetryMessageEnum.grfApply2cn.getQueueName());
        logger.info("getQueueName" + this.getQueueName());
        super.sendDelayedEnqueue(topic,message,retries);
    }

    @Override
    public void saveRetryDelayedEnqueueFinish(String topic, String message, int retries) {
        Integer soTrackerBizType = SoEnum.SoTrackerBizType.APPLY_RETURN.getType();
        Integer operateType = OperateTypeEnum.GRFAPPLY2CN.getOperateType();
        FaildExceptionLog faildExceptionLog = FaildExceptionLogBuilder.build(soTrackerBizType,operateType, message, retries);
        faildExceptionLogService.save(faildExceptionLog);
    }
}*/
